import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login/login'
import travel from '@/components/travel/travel'
// import searchBox from '@/components/travel/components/searchBox/searchBox'

import myInfo from '@/components/myCenter/myInfo/myInfo'
import infoHome from '@/components/myCenter/myInfo/child/infoHome'
import approveInput from '@/components/myCenter/myInfo/child/approveInput'
import approving from '@/components/myCenter/myInfo/child/approving'


import myOrder from '@/components/myCenter/myOrder/myOrder'

import myWallet from '@/components/myCenter/myWallet/myWallet'
import walletHome from '@/components/myCenter/myWallet/child/walletHome'
import balance from '@/components/myCenter/myWallet/child/balance'
import coupon from '@/components/myCenter/myWallet/child/coupon'

import msgCenter from '@/components/myCenter/msgCenter/msgCenter'

import mySet from '@/components/myCenter/mySet/mySet'
import setHome from '@/components/myCenter/mySet/child/setHome'
import commonAddr from '@/components/myCenter/mySet/child/commonAddr'

import agency from '@/components/myCenter/agency/agency'
import ycshare from '@/components/myCenter/ycshare/ycshare'

Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [
    {path: '/',name: 'travel',component: travel},
    
    {path: '/login',name: 'login',component: login},

    {
      path: '/myInfo',name: 'myInfo',component: myInfo,
      children:[
         {path: '',name: 'infoHome',component: infoHome},
         {path: 'approveInput',name: 'approveInput',component: approveInput},
         {path: 'approving',name: 'approving',component: approving},
      ]
    },

    {path: '/myOrder',name: 'myOrder',component: myOrder},

    {
      path: '/myWallet',name: 'myWallet',component: myWallet,
      children:[
        {path: '',name: 'walletHome',component: walletHome},
        {path: 'balance',name: 'balance',component: balance},
        {path: 'coupon',name: 'coupon',component: coupon},
      ]
    },

    {path: '/msgCenter',name: 'msgCenter',component: msgCenter},
    
    {
      path: '/mySet',name: 'mySet',component: mySet,
      children:[
        {path: '',name: 'setHome',component: setHome},
        {path: 'commonAddr',name: 'commonAddr',component: commonAddr},
      ]
    },
    {path: '/agency',name: 'agency',component: agency},
    {path: '/ycshare',name: 'ycshare',component: ycshare},
  ]
})
